<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('分类')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type_id" data-rule="required" data-source="type/index" class="form-control selectpage" name="row[type_id]" type="text" value="{$row.type_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('规格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-guige" data-rule="required" class="form-control" name="row[guige]" type="text" value="{$row.guige|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('单位')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
            {foreach name="units" item="vo"}
             
                <label for="row[unit]-{$vo.id}"><input id="row[unit]-{$vo.id}" name="row[unit]" type="radio" value="{$vo.id}" <?php if($vo['id'] == $row['unit']) echo 'checked';?>  /> {$vo.unit}</label> 
            {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('活动商品')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[active]-0"><input id="row[active]-0" name="row[active]" type="radio" value="0"  {if $row.active == 0} checked {/if}/>不是</label> 
                <label for="row[active]-1"><input id="row[active]-1" name="row[active]" type="radio" value="1"  {if $row.active == 1} checked {/if}/>是</label> 
            </div>
        </div>
    </div>
      
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" data-rule="required" class="form-control" name="row[money]" type="text" value="{$row.money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('活动价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-active_money" data-rule="required" class="form-control" step="0.01" name="row[active_money]" type="number" value="{$row.active_money|htmlentities}"">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('运费')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delivery_fee" data-rule="required" class="form-control" step="0.01" name="row[delivery_fee]" type="number" value="{$row.delivery_fee|htmlentities}"">
        </div>
    </div>
  
  
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-status" name="row[status]" type="hidden" value="{$row.status}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-status" data-yes="1" data-no="0" >
            <i class="fa fa-toggle-on text-success {eq name="$row.status" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
